package cn.tsoft.vo;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;

public class Order implements Parcelable {

	private String title;
	private String seller_nick;
	private String buyer_nick;
	private String status;
	public static final Parcelable.Creator<Order> CREATOR = new Creator<Order>() {   
        public Order createFromParcel(Parcel source) {   
        	Order order = new Order();   
        	order.title = source.readString();
        	order.seller_nick = source.readString();
        	order.buyer_nick = source.readString();
        	order.status = source.readString();
            return order;   
        }   
        public Order[] newArray(int size) {   
            return new Order[size];   
        }   
    }; 
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(title);
		dest.writeString(seller_nick);
		dest.writeString(buyer_nick);
		dest.writeString(status);
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSeller_nick() {
		return seller_nick;
	}

	public void setSeller_nick(String seller_nick) {
		this.seller_nick = seller_nick;
	}

	public String getBuyer_nick() {
		return buyer_nick;
	}

	public void setBuyer_nick(String buyer_nick) {
		this.buyer_nick = buyer_nick;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public static Parcelable.Creator<Order> getCreator() {
		return CREATOR;
	}

}
